#! /bin/bash
sed -i  's/\(version":\s"\).*/\11\.0\.'$(date +%Y%m%d%H%M%S)'",/g' ./package-server.json
npm run build-service
npm run build-server
cnpm publish --tag server ./release-server
sed -i  's/\(version":\s"\).*/\11\.0\.'$(date +%Y%m%d%H%M%S)'",/g' ./package-service.json
npm run build-service
cnpm publish --tag service ./release-service
